package com.IntelligentCommunity.deploy.api;

import com.IntelligentCommunity.common.core.constant.ServiceNameConstants;
import com.IntelligentCommunity.common.core.domain.R;
import com.IntelligentCommunity.deploy.api.factory.DeployAlarmFallbackFactory;
import com.IntelligentCommunity.deploy.api.factory.WebSocketFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 美国五星上将麦克阿瑟
 */
@FeignClient(contextId = "ws", value = ServiceNameConstants.DEPLOY_SERVICE, fallbackFactory = WebSocketFallbackFactory.class, path = "/ws")
public interface WebSocketRemote {

    @GetMapping("/sendWran")
    public R sendWran(@RequestParam("message") String message);
}
